]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Allow a slighly bigger area for drag overshoot
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 22 May 2020 17:07:10 +0000 (14:07 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 18 Jun 2020 13:54:31 +0000 (10:54 -0300)
Now that we don't have the Frequent tab anymore, and subsequently
the buttons to switch tabs, the app grid fill all the way to the
bottom, leaving no room for drag overshoot.

Add a 20px (i.e. OVERSHOOT_THRESHOLD) area at the bottom of the
grid where dragging actually scrolls to the next page.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1271

js/ui/appDisplay.js

index 98b2e9cf4d95dddb8c8a794015c59ee867cdf6c7..2ada45406cb0c93eac1f68320e3294d0404f4084 100644 (file)
@@ -774,7 +774,7 @@ class AppDisplay extends BaseAppView {
     _handleDragOvershoot(dragEvent) {
         let [, gridY] = this.get_transformed_position();
         let [, gridHeight] = this.get_transformed_size();
-        let gridBottom = gridY + gridHeight;
+        const gridBottom = gridY + gridHeight - OVERSHOOT_THRESHOLD;
 
         // Already animating
         if (this._adjustment.get_transition('value') !== null)